import request from '@/utils/request'
// 首页-抢单列表
export function getGrabLis(data) {
	return request({
		url: '/xf-api/xf-linggong/jjp/xfJjpOddjobSuggest/listcompanySuggests',
		method: 'post',
		data,
		options: {
			load: false
		}
	})
}
// 获取常用工
export function getOftenJober(data) {
	return request({
		url: '/xf-api/xf-linggong/jjp/xfJjpOddjobFrequentlyWork/list',
		method: 'post',
		data,
		options: {
			load: false
		}
	})
}
// 附近求职者
export function nearJober(data) {
	return request({
		url: '/xf-api/xf-linggong/jjpoddjob/licensefree/OddUser/queryNearby',
		method: 'post',
		data
		
	})
}
// 枪单详情
export function grabDetail(data) {
	return request({
		url: '/xf-api/xf-linggong/jjpoddjob/licensefree/Info/queryByIdTwo',
		method: 'post',
		data
		
	})
}
//发布职位
export function addJob(data) {
	return request({
		url: '/xf-api/xf-linggong/jjp/xfJjpOddjobInfo/addTwo',
		method: 'post',
		data
		
	})
}
//我的发布职位编辑接口 
export function getFbEditInfo(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobInfo/queryById`,
		data
	})
}
export function rightNowBm(data) {
	return request({
		method: 'POST',
		url: `/xf-api/xf-linggong/jjp/xfJjpOddjobRegistration/saveRegistration`,
		data	
	})
}
// 推荐给ta 接口
export function workJober(data) {
	return request({
		url: '/xf-api/xf-linggong/jjp/xfJjpOddjobDispatching/dispatch',
		method: 'post',
		data
	})
}

//职位派工给他合适人员位列表
export function getHsUserLis(data) {
	return request({
		url: '/xf-api/xf-linggong/jjp/xfJjpOddjobUser/queryMyCommonUser',
		method: 'post',
		data,
		options: {
			load: false
		}
	})
}
//职位派工公司合适岗位
export function hsJob(data) {
	return request({
		url: '/xf-api/xf-linggong/jjp/xfJjpOddjobInfo/queryMySelfPositionList',
		method: 'post',
		data,
		options: {
			load: false
		}
	})
}
//抢单派工
export function qdpgOrder(data) {
	return request({
		url: '/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/recommendOftenList',
		method: 'post',
		data,
		options: {
			load: false
		}
	})
}
//抢单派工推荐人员列表
export function ytjPerson(data) {
	return request({
		url: '/xf-api/xf-linggong/jjp/xfJjpOddjobCompany/recommendList',
		method: 'post',
		data,
		options: {
			load: false
		}
	})
}
export function getZfw(data) {
	return request({
		url: '/xf-api/xf-linggong/jjp/xfJjpOddjobAddedServices/queryByList',
		method: 'post',
		data,
		options: {
			load: false
		}
	})
}

// 判断当前职位是否支付
export function isCurrentPositionPaid(data) {
	return request({
		url: '/xf-api/xf-linggong/jjp/xfJjpOddjobInfo/isCurrentPositionPaid',
		method: 'post',
		data,
		options: {
			load: false
		}
	})
}
